package com.sgffsg.learn.javalib.mergetest;

/**
 * @author: lmk
 * @date: 2024/4/8
 * @desc:
 */
public class StateMode {

    int lightMode = 0;


    abstract class MyState {
        public abstract void switchState();
    }

    class OpenState extends MyState {
        State currentState = State.OPEN;
        @Override
        public void switchState() {

        }
    }

    class CloseState extends MyState {
        State currentState = State.CLOSED;
        @Override
        public void switchState() {

        }
    }

    enum State {
        OPEN, CLOSED
    }
}
